package com.bci.pwtz.mysql.model;

import java.util.Date;

import com.bci.pwtz.common.util.PwtzUtils;

public class CompanyMessage {
    private Long messageId;

    private Long companyUserId;

    private Integer messageType;

    private String content;

    private Date createTime;

    private Long auditId;

    private Integer appStatus;

    private Date appReadTime;

    private String deviceId;

    private Integer readStatus;
    
    private String createTimeStr;
    
    private Integer result;

    public Long getMessageId() {
        return messageId;
    }

    public void setMessageId(Long messageId) {
        this.messageId = messageId;
    }

    public Long getCompanyUserId() {
        return companyUserId;
    }

    public void setCompanyUserId(Long companyUserId) {
        this.companyUserId = companyUserId;
    }

    public Integer getMessageType() {
        return messageType;
    }

    public void setMessageType(Integer messageType) {
        this.messageType = messageType;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getAuditId() {
        return auditId;
    }

    public void setAuditId(Long auditId) {
        this.auditId = auditId;
    }

    public Integer getAppStatus() {
        return appStatus;
    }

    public void setAppStatus(Integer appStatus) {
        this.appStatus = appStatus;
    }

    public Date getAppReadTime() {
        return appReadTime;
    }

    public void setAppReadTime(Date appReadTime) {
        this.appReadTime = appReadTime;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId == null ? null : deviceId.trim();
    }

    public Integer getReadStatus() {
        return readStatus;
    }

    public void setReadStatus(Integer readStatus) {
        this.readStatus = readStatus;
    }
    
    /**
     * @return the createTimeStr
     */
    public String getCreateTimeStr()
    {
        return PwtzUtils.date2String(createTime,"yyyy-MM-dd HH:mm:ss");
    }

    /**
     * @param createTimeStr the createTimeStr to set
     */
    public void setCreateTimeStr(String createTimeStr)
    {
        this.createTimeStr = createTimeStr;
    }

    public Integer getResult() {
		return result;
	}

	public void setResult(Integer result) {
		this.result = result;
	}

	@Override
    public String toString()
    {
        return "CompanyMessage [messageId=" + messageId + ", companyUserId=" + companyUserId + ", messageType=" + messageType + ", content=" + content + ", createTime=" + createTime + ", auditId=" + auditId + ", appStatus=" + appStatus + ", appReadTime=" + appReadTime + ", deviceId=" + deviceId + ", readStatus=" + readStatus + "]";
    }
    
}